/**
 * 权限与角色
 *
 */

const authorityRoutes = [
  {
    path: "/authority",
    component: () => import("@/layout"),
    redirect: "/authority/role",
    name: "authority",
    meta: {
      title: "权限与角色",
      icon: "el-icon-folder-opened",
      keepAlive: true,
    },
    alwaysShow: true,
    children: [
      {
        path: "/authority/role",
        component: () => import("@/views/authority/role"),
        name: "authority_role",
        meta: {
          title: "角色管理",
          icon: "el-icon-star-on",
          keepAlive: true,
        },
      },
      {
        path: "/authority/menu",
        component: () => import("@/views/authority/menu"),
        name: "authority_menu",
        meta: {
          title: "菜单管理",
          icon: "el-icon-star-on",
          keepAlive: true,
        },
      },
      {
        path: "/authority/menu",
        component: () => import("@/views/authority/menu"),
        name: "authority_menu",
        meta: {
          title: "菜单管理",
          icon: "el-icon-star-on",
          keepAlive: true,
        },
      },
      {
        path: "/authority/rule",
        component: () => import("@/views/authority/rule"),
        name: "authority_rule",
        meta: {
          title: "业务规则设置日志",
          icon: "el-icon-star-on",
          keepAlive: true,
        },
      },
      {
        path: "/authority/public",
        component: () => import("@/views/authority/public"),
        name: "authority_public",
        meta: {
          title: "公告列表",
          icon: "el-icon-star-on",
          keepAlive: true,
        },
      },
      {
        path: "/authority/publicAction",
        component: () => import("@/views/authority/publicAction"),
        name: "authority_publicAction",
        meta: {
          title: "公告",
          icon: "el-icon-star-on",
        },
      },
      {
        path: "/authority/leaguer",
        component: () => import("@/views/authority/leaguer"),
        name: "authority_leaguer",
        meta: {
          title: "成员管理",
          icon: "el-icon-star-on",
          keepAlive: true,
        },
      },
      {
        path: "/authority/syslog",
        component: () => import("@/views/authority/syslog"),
        name: "authority_syslog",
        meta: {
          title: "系统日志",
          icon: "el-icon-star-on",
          keepAlive: true,
        },
      },
      {
        path: "/authority/printlog",
        component: () => import("@/views/authority/printLog"),
        name: "authority_printlog",
        meta: {
          title: "打印日志",
          icon: "el-icon-star-on",
          keepAlive: true,
        },
      },
      {
        path: "/authority/apilog",
        component: () => import("@/views/authority/apiLog"),
        name: "authority_apilog",
        meta: {
          title: "接口调用日志",
          icon: "el-icon-star-on",
          keepAlive: true,
        },
      },
      {
        path: "/authority/userlog",
        component: () => import("@/views/authority/userLog"),
        name: "authority_userlog",
        meta: {
          title: "用户日志",
          icon: "el-icon-star-on",
          keepAlive: true,
        },
      },

      {
        path: "/authority/settingLog",
        component: () => import("@/views/authority/settingLog"),
        name: "authority_settingLog",
        meta: {
          title: "业务规则设置日志",
          icon: "el-icon-star-on",
          keepAlive: true,
        },
      },
      {
        path: "/authority/settingRule",
        component: () => import("@/views/authority/settingRule"),
        name: "authority_settingRule",
        meta: {
          title: "业务规则设置",
          icon: "el-icon-star-on",
          keepAlive: true,
        },
      },
      {
        path: "/authority/dict",
        component: () => import("@/views/authority/dict/list"),
        redirect: "/authority/dict/enterType",
        name: "authority_dict",
        meta: {
          title: "数据字典",
          icon: "el-icon-star-on",
          keepAlive: true,
        },
        alwaysShow: true,
        children: [
          {
            path: "/authority/dict/enterType",
            component: () => import("@/views/authority/dict/enterType"),
            name: "authority_dict_entertype",
            meta: {
              title: "入库类型",
              icon: "el-icon-star-on",
              keepAlive: true,
            },
          },
          {
            path: "/authority/dict/outType",
            component: () => import("@/views/authority/dict/outType"),
            name: "authority_dict_outtype",
            meta: {
              title: "出库类型",
              icon: "el-icon-star-on",
              keepAlive: true,
            },
          },
        ],
      },
    ],
  },
];

export default authorityRoutes;
